package com.site.wisdom_construction.service.statisticsModule;

import com.site.wisdom_construction.dao.statisticsModule.StatisticsSafetyDao;
import com.site.wisdom_construction.statisticsResult.QualityByTypeName;
import com.site.wisdom_construction.statisticsResult.SafetyByTypeName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/2/12
 * @Description
 */
@Service
public class StatisticsSafetyService implements StatisticsSafetyDao {
    @Autowired
    private StatisticsSafetyDao statisticsSafetyDao;

    @Override
    public Integer countSafetyAll(Map map) {
        return statisticsSafetyDao.countSafetyAll(map);
    }

    @Override
    public Integer countSafetyAllByStatusDZ(Map map) {
        return statisticsSafetyDao.countSafetyAllByStatusDZ(map);
    }

    @Override
    public Integer countSafetyAllByStatusDY(Map map) {
        return statisticsSafetyDao.countSafetyAllByStatusDY(map);
    }

    @Override
    public Integer countSafetyAllByStatusYZ(Map map) {
        return statisticsSafetyDao.countSafetyAllByStatusYZ(map);
    }

    @Override
    public Integer countSafetyAllByStatusCQ(Map map) {
        return statisticsSafetyDao.countSafetyAllByStatusCQ(map);
    }

    @Override
    public List<SafetyByTypeName> countBySafetyTypeName(Map map) {
        return statisticsSafetyDao.countBySafetyTypeName(map);
    }

    @Override
    public List<SafetyByTypeName> countBySubcontractorsName(Map map) {
        return statisticsSafetyDao.countBySubcontractorsName(map);
    }

    @Override
    public List<SafetyByTypeName> countBySafetyInspectionName(Map map) {
        return statisticsSafetyDao.countBySafetyInspectionName(map);
    }

    @Override
    public List<SafetyByTypeName> countByTeamName(Map map) {
        return statisticsSafetyDao.countByTeamName(map);
    }

    @Override
    public List<SafetyByTypeName> countByResponsiblePerson(Map map) {
        return statisticsSafetyDao.countByResponsiblePerson(map);
    }

    @Override
    public Integer countAll(Map map) {
        return statisticsSafetyDao.countAll(map);
    }

    @Override
    public List<QualityByTypeName> countByDiscoverTime(Map map) {
        return statisticsSafetyDao.countByDiscoverTime(map);
    }
}
